package cn.edu.scau.cmi.chenjia.comprehensive.model;

import javafx.beans.property.IntegerProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class Student {

    private final StringProperty subject;
    private final StringProperty teacher;
    private final StringProperty classs;
    private final StringProperty number;
    private final StringProperty name;
    private final StringProperty work;
    private final StringProperty test;
    private final StringProperty homework;
    private final StringProperty term;
    private final StringProperty comment;
    
    public Student() {
        this(null,null,null,null,null,null,null,null,null,null);
    }

    public Student(String subject, String teacher,String classs, String number,String name, String work,String test, String homework,String term, String comment) {
        this.subject = new SimpleStringProperty(subject);
        this.teacher = new SimpleStringProperty(teacher);
        this.classs = new SimpleStringProperty(classs);
        this.number = new SimpleStringProperty(number);
        this.name = new SimpleStringProperty(name);
        this.work = new SimpleStringProperty(work);
        this.test = new SimpleStringProperty(test);
        this.homework = new SimpleStringProperty(homework);
        this.term = new SimpleStringProperty(term);
        this.comment = new SimpleStringProperty(comment);
        
    }

    public String getsubject() {
        return subject.get();
    }

    public void setsubject(String subject) {
        this.subject.set(subject);
    }

    public StringProperty subjectProperty() {
        return subject;
    }

    public String getteacher() {
        return teacher.get();
    }

    public void setteacher(String teacher) {
        this.teacher.set(teacher);
    }

    public StringProperty teacherProperty() {
        return teacher;
    }

    public String getclasss() {
        return classs.get();
    }

    public void setclasss(String classs) {
        this.classs.set(classs);
    }

    public StringProperty classsProperty() {
        return classs;
    }
    
    public String getnumber() {
        return number.get();
    }

    public void setnumber(String number) {
        this.number.set(number);
    }

    public StringProperty numberProperty() {
        return number;
    }
    
    public String getname() {
        return name.get();
    }

    public void setname(String name) {
        this.name.set(name);
    }

    public StringProperty nameProperty() {
        return name;
    }
    
    public String getwork() {
        return work.get();
    }

    public void setwork(String work) {
        this.work.set(work);
    }

    public StringProperty workProperty() {
        return work;
    }
    
    public String gettest() {
        return test.get();
    }

    public void settest(String test) {
        this.test.set(test);
    }

    public StringProperty testProperty() {
        return test;
    }
    
    public String gethomework() {
        return homework.get();
    }

    public void sethomework(String homework) {
        this.homework.set(homework);
    }

    public StringProperty homeworkProperty() {
        return homework;
    }
    
    public String getterm() {
        return term.get();
    }

    public void setterm(String term) {
        this.term.set(term);
    }

    public StringProperty termProperty() {
        return term;
    }
    
    public String getcomment() {
        return comment.get();
    }

    public void setcomment(String comment) {
        this.comment.set(comment);
    }

    public StringProperty commentProperty() {
        return comment;
    }
}
